package com.example.extenddemo.config;

import com.example.extenddemo.handle.MyJsonHandler;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.*;

@JacksonAnnotationsInside
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.FIELD})
@Documented
@JsonSerialize(using = MyJsonHandler.class)
public @interface MyJson {
    String value() default "";

    String Key() default "";

    Class type() default Object.class;
}
